GET api/stocks/{valueOption}/variants?variantIdList[0]={variantIdList[0]}&variantIdList[1]={variantIdList[1]}
Provides a list of VariantIds, each with a list of stock quantity, per ShopId, given a stock value option and a list of variant ids.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
valueOption |
Stock value option. |
Core.Models.Domain.StockValueOption |
Required |
variantIdList |
List variant ids. |
Collection of integer |
Required |
Body Parameters
None.
Response Information
Resource Description
List of stock quantity models, with stock quantity per ShopId.
Collection of StockListName | Description | Type | Additional information |
---|---|---|---|
Identifier | string |
None. |
|
Result | Collection of ShopQuantityStock |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Identifier": "sample string 1", "Result": [ { "ShopId": 1, "Quantity": 2 }, { "ShopId": 1, "Quantity": 2 } ] }, { "Identifier": "sample string 1", "Result": [ { "ShopId": 1, "Quantity": 2 }, { "ShopId": 1, "Quantity": 2 } ] } ]
application/xml, text/xml
Sample:
<ArrayOfStockListDTOOfStockShopQuantityDTOiTlCtTkQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <StockListDTOOfStockShopQuantityDTOiTlCtTkQ> <Identifier>sample string 1</Identifier> <Result> <StockShopQuantityDTO> <Quantity>2</Quantity> <ShopId>1</ShopId> </StockShopQuantityDTO> <StockShopQuantityDTO> <Quantity>2</Quantity> <ShopId>1</ShopId> </StockShopQuantityDTO> </Result> </StockListDTOOfStockShopQuantityDTOiTlCtTkQ> <StockListDTOOfStockShopQuantityDTOiTlCtTkQ> <Identifier>sample string 1</Identifier> <Result> <StockShopQuantityDTO> <Quantity>2</Quantity> <ShopId>1</ShopId> </StockShopQuantityDTO> <StockShopQuantityDTO> <Quantity>2</Quantity> <ShopId>1</ShopId> </StockShopQuantityDTO> </Result> </StockListDTOOfStockShopQuantityDTOiTlCtTkQ> </ArrayOfStockListDTOOfStockShopQuantityDTOiTlCtTkQ>